import request from "@/utils/request";
// 获取全部
export const getRegnus = (RegnusRequestData) => {
  return request.request({
    url: `/admin/regnus/pages`,
    method: "POST",
    data:RegnusRequestData,
  });
}

// 删除
export const deleteRegnus = (RegnusRequestData) => {
  return request.request({
    url: `/admin/regnus/delete`,
    method: "POST",
    data:RegnusRequestData,
  });
}

//更新
export const updateRegnus = (RegnusRequestData) => {
  return request.request({
    url: `/admin/regnus/update`,
    data:RegnusRequestData,
    method: "POST",
  });
}


//添加
export const addRegnus = (RegnusRequestData) => {
  return request.request({
    url: `/admin/regnus/add`,
    data:RegnusRequestData,
    method: "POST",
  });
}

export const getRegnusOne = (id) => {
  return request.request({
    url: `/admin/regnus/getone/${id}`,
    method: "GET",
  });
}